/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const router = {
  path: '/database',
  component: Layout,
  name: 'database',
  alwaysShow: true,
  meta: {
    title: '基础数据',
    icon: 'database'
  },
  children: [
    {
      path: '/database/shop',
      component: () => import('@/views/database/shop/shoplist'),
      name: 'shoplist',
      meta: {
        title: '门店管理'
      },
      //aliasChildren:['system_user_add','system_user_delete','system_user_detail','system_user_setrole','system_user_setuserpermission']
      hidden: true
    },
    {
      path: '/database/shop/func/shop.func',
      component: () => import('@/views/database/shop/shoplist'),
      name: 'staffList',
      meta: {
        title: '门店管理'
      },
    },
    
 /*    {
      path: '/database/cashregister/cashregisterlist',
      component: () => import('@/views/database/cashregister/cashregisterlist'),
      name: 'cashregisterlist',
      meta: {
        title: '收银机管理'
      },
      //aliasChildren:['system_user_add','system_user_delete','system_user_detail','system_user_setrole','system_user_setuserpermission']
      // hidden: true
    }, */
   /*  {
      path: '/database/moneyAccount/moneyAccountlist',
      component: () => import('@/views/database/moneyAccount/moneyAccountlist'),
      name: 'moneyAccountlist',
      meta: {
        title: '收支帐户'
      },
      //aliasChildren:['system_user_add','system_user_delete','system_user_detail','system_user_setrole','system_user_setuserpermission']
      // hidden: true
    }, *//*  {
      path: '/database/brand',
      component: () => import('@/views/database/brand/brandlist.vue'),
      name: 'brand',
      meta: {
        title: '品牌管理'
      },
      //aliasChildren:['system_user_add','system_user_delete','system_user_detail','system_user_setrole','system_user_setuserpermission']
      // hidden: true
    }, */ {
      path: '/database/supplier',
      component: () => import('@/views/database/supplier/supplierList'),
      name: 'supplierlist',
      meta: {
        title: '供应商'
      },
      //aliasChildren:['system_user_add','system_user_delete','system_user_detail','system_user_setrole','system_user_setuserpermission']
      // hidden: true
    }, {
      path: '/database/supplier/detail',
      component: () => import('@/views/database/supplier/detail'),
      name: 'supplierdetail',
      meta: {
        title: '添加供应商'
      },
      hidden: true
    }, {
      path: '/database/drug',
      component: () => import('@/views/database/drug/druglist'),
      name: 'druglist',
      meta: {
        title: '药品信息'
      },
      //aliasChildren:['system_user_add','system_user_delete','system_user_detail','system_user_setrole','system_user_setuserpermission']
      // hidden: true
    }, {
      path: '/database/drug/detail',
      component: () => import('@/views/database/drug/detail'),
      name: 'drugdetail',
      meta: {
        title: '添加药品'
      },
      hidden: true
    },


  ]
}

export default router
